<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <title>DoYouHaoBaby示例：URL路由</title>
<link rel='stylesheet' type='text/css' href='__PUBLIC__/css/common.css'>
 </head>
 <body>
 <div class="main">
 <h2>DoYouHaoBaby示例之：URL路由</h2>
<div class="title">配置URL路由定义文件，设置简单路由和泛路由</div><br/>
<div class="result">当前URL：<br/>__SELF__ <br/>路由到模块 <span style="color:red">__MODULE_NAME__</span> 的<span style="color:red">__ACTION_NAME__</span> 操作<br/>
	参数:<br/>
	<foreach for=arrGets>
	{$key}=>{$value}<br/>
	</foreach>
	</div>
	<div class="line"></div>
 <div class="title">路由配置</div>
	简单路由：<a href="__APP__/category/1">/category/1</a><br/>
	泛路由1：<a href="__APP__/blog/1">/blog/1</a><br/>
	泛路由2：<a href="__APP__/blog/2008/2">/blog/2008/2</a><br/>

<div class="line"></div>
 <div class="title">示例源码</div><br/>
 <div class="li_title">配置文件Config.php</div><br/>
 <div class="code"><php>highlight_file( APP_CONFIG_PATH.'/Config.php')</php></div><br>
 <div class="li_title">路由定义文件Router.php</div><br/>
 <div class="code"><php>highlight_file( APP_CONFIG_PATH.'/Router.php')</php></div><br>
 <div class="li_title">控制器IndexControl类</div><br/>
 <div class="code"><php>highlight_file( APP_LIB_PATH.'/Action/IndexController.class.php')</php></div><br>
 <div class="li_title">控制器BlogControl类</div><br/>
 <div class="code"><php>highlight_file( APP_LIB_PATH.'/Action/BlogController.class.php')</php></div>
</div>
 </body>
</html>
